$primary-color: #1a91f3;
$border-color: #dcdfe6;
$base-color: #fff;

input[type="text"].dynamic-form-base-control,
input[type="password"].dynamic-form-base-control,
textarea.dynamic-form-base-control,
select.dynamic-form-base-control {
  padding: 1px 11px;
  background-color: $base-color;
  background-image: none;
  border-radius: 5px;
  border: 1px solid $border-color;
  font-size: 14px;
  line-height: 30px;
  height: 30px;
  outline: none;

  &::-webkit-input-placeholder {
    color: #bbbbbb;
  }

  &:disabled {
    background-color: rgba(75, 75, 75, 0.514);
    color: #919191;
  }

  &:hover, &:active, &:focus {
    border-color: $primary-color;
  }
}

.dynamic-form-base-control.radio {
  display: flex;
  flex-direction: row;

  .item {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  input {
    position: relative;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 22px;
    background-color: $base-color;
    border: 1px solid $border-color;
    margin: 0;
    margin-right: 5px;

    &:after {
      position: absolute;
      display: inline-block;
      top: 3px;
      left: 3px;
      width: 14px;
      height: 14px;
      content: "";
      border: none;
      text-align: center;
      border-radius: 14px;
    }

    &:checked {
      &:after {
        background-color: $primary-color;
      }
    }

  }
}

textarea.dynamic-form-base-control {
  height: unset;
}

.dynamic-form-base-control.base-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  user-select: none;
  width: auto;
  white-space: nowrap;
  transition: background-color .1s,transform .1s,color .35s cubic-bezier(.65,0,.25,1);
  border: none;
  cursor: pointer;
  border-radius: 5px;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 60px;
  height: 30px;
  padding: 0 14px;
  font-size: 14px;

  background: #f0f0f0;
  color: #333;

  &:hover {
    background-color: #ebebeb;
  }
  &:active {
    background-color: #d8d8d8;
    transform: scale(0.9);
  }
}
.dynamic-form-base-control.base-checkbox {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  appearance: none;
  height: 22px;
  width: 22px;
  overflow: hidden;
  background-color: $base-color;
  background-image: none;
  border-radius: 5px;
  border: 1px solid $border-color;
  color: $primary-color;
  margin: 0;
  margin-right: 10px;

  &:after {
    display: inline-block;
    width: 22px;
    line-height: 22px;
    top: 0px;
    content: "";
    color: $primary-color;
    border: none;
    text-align: center;
    font-size: 12px;
  }

  &:checked:after {
    content: "✔️";
    color: $primary-color;
  }
}

.dynamic-form-row {
  display: flex;
  flex-direction: row;
  flex: 1;
  flex-direction: 'row';
}
.dynamic-form-col {
  display: inline-flex;
  flex-direction: column;
  flex-grow: 0;
  flex-shrink: 0;
}
